﻿using System.Runtime.Serialization;

using Cookbook.Services.Core.Domain;
using Cookbook.Services.Core.Handlers;

namespace Cookbook.Services.Core.Commands
{
    [MapsToAggregateRootMethod(typeof(Recipe), "Rate")]
    [DataContract]
    public class RateRecipeCommand : VersionedCommand
    {
        [DataMember]
        public int Rating { get; set; }
    }
}